﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="VCPage.aspx.cs" Inherits="UniversityStudentManagemnetSystem.UI.VCPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

<style>
  .required
        {
            color: red;
            }
    

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center">
        <fieldset style="width: 800px; height: 600px;">
            <div align="center">
                <fieldset style="width: 450px; height: 300px;">
                    <legend style="text-decoration: blink; border: coral; color: Lime">VC Information Entry</legend>
                    <table align="center">
                        <tr>
                            <td>
                                Name</td>
                            <td>
                                <asp:TextBox ID="nameTextBox" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" CssClass="required" ControlToValidate="nameTextBox" ValidationGroup="vgVCPage"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Designation</td>
                            <td>
                                <asp:TextBox ID="designationTextBox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Present Address</td>
                            <td>
                                <asp:TextBox ID="presentAddressTextBox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Permanent Addres</td>
                            <td>
                                <asp:TextBox ID="permanentAddressTextBox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Contact No</td>
                            <td>
                                <asp:TextBox ID="contactNoTextBox" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" CssClass="required" ControlToValidate="contactNoTextBox" ValidationGroup="vgVCPage"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email
                                
                                </td>
                            <td>
                                <asp:TextBox ID="emailTextBox" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" CssClass="required" ControlToValidate="emailTextBox" ValidationGroup="vgVCPage"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                        <td>Joining Date</td>
                        <td>
                            <asp:TextBox ID="joiningDateTextBox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label" runat="server" Text="Image"></asp:Label>
                            </td>
                            <td>
                                <asp:FileUpload ID="VcImageFileUpload" runat="server" />
                            </td>
                            <td>
                                <asp:Button ID="uploadButton" runat="server" onclick="uploadButton_Click" 
                                    Text="Save"  ValidationGroup="vgVCPage"/>
                            </td>
                        </tr>
                    </table>
                    <div align="center">
                    <table align="center">
                    <tr>
                    <td>
                        <asp:Label ID="messagelabel" runat="server"></asp:Label>
                        </td>
                    </tr>
                    </table>
                    </div>
                </fieldset>
            </div>
        </fieldset>
    </div>
</asp:Content>
